<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Q</title>
</h:head>
	<h:body>
	<p:panel header="Pacchetto">

<h:form id="all">
	<h1>Inserisci codice Richiesta</h1>
	<p:inputText id="idp" value="#{acceptMB.codice}"/>
		
		<br />
		<p:commandButton value="Submit" action="#{showPkgMB.loadPkg()}" rendered="#{acceptMB.invia}"> 
		 <f:setPropertyActionListener value="#{acceptMB.richiestaDTO.pkgPersonalizzato}" 
                            target="#{showPkgMB.pacchettoDTO}"/>
                            
		</p:commandButton>
		<br />
		<p:commandButton value="Valida" action="#{acceptMB.retrive}" update="all" rendered="#{acceptMB.valida}"> 
                   
		</p:commandButton>
		
		
	<h:outputLabel id="label" value="#{acceptMB.messaggio}" />
	<p:messages autoUpdate="true"></p:messages>
 </h:form>    
</p:panel>
	
	
	</h:body>
</html>